import { create } from "svg-captcha";

module.exports = {
  captchaCreater() {
    const captchaObj = create();
    const newCaptcha = {token: Date.now(), data: captchaObj}
    this.ctx.session.captcha = newCaptcha;
    return newCaptcha;
  }
};
